import request from '@/utils/request'
/**
 * @description 登录的接口
 * @param {string,string} data mobile,password
 * @returns promise
 */
export function login(data) {
  return request({
    url: '/sys/login',
    method: 'POST',
    data
  })
}
export function getInfo(token) {

}

/**
 * @description: 获取用户资料
 * @param {*}
 * @return {*}
 */
export function getUserProfile() {
  return request({
    url: '/sys/profile',
    method: 'post'
  })
}
/**
 * @description 获取员工基本信息
 * @param {*} id
 * @returns
 */
export function getUserDetailByID(id) {
  return request({
    url: '/sys/user/' + id

  })
}
